package com.gxks.lhs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 主页轮播图
 * </p>
 *
 * @author LuoHaisong
 * @since 2024-03-29
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Ad对象", description = "主页轮播图")
public class Ad implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Long adId;

    @ApiModelProperty("分类ID")
    private Long categoryId;

    @ApiModelProperty("背景图片")
    private String imgUrl;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("链接")
    private String link;

    @ApiModelProperty("状态，0下架，1正常")
    private Boolean status;

    @ApiModelProperty("上传时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("备注")
    private String remarks;


}
